home *** CD-ROM | disk | FTP | other *** search
- 10 rem ********************************
- 12 rem * *
- 14 rem * h e l p 6 4 *
- 16 rem * ----------------------- *
- 18 rem * *
- 20 rem * program 2 : screen generator *
- 22 rem * *
- 24 rem * this program will display *
- 26 rem * and write each of the 10 *
- 28 rem * help screens to disk. *
- 30 rem * *
- 32 rem * *
- 34 rem * copyright (c) andrew leeder, *
- 36 rem * december 1988. *
- 38 rem * *
- 40 rem ********************************
- 50 :
- 100 open1,8,2," h.screens,p,w":print#1,chr$(0);chr$(160);:fori=1to10
- 110 print"[147]":onigosub1000,2000,3000,4000,5000,6000,7000,8000,9000,10000
- 120 print""hd$:forj=0to15:print#1,chr$(peek(1065+j));:nextj
- 130 print#1,chr$(bd);chr$(bg);chr$(fm);chr$(fg);
- 140 forj=1145to1945step40:fork=jtoj+37:print#1,chr$(peek(k));:nextk,j,i:close1
- 150 print"[147]finished.":end
- 160 :
- 999 rem ******************help screen 1
- 1000 hd$="[213]seful [193]ddresses":bd=6:bg=1:fm=12:fg=0
- 1010 print"[193]ddress[221][196]escription"
- 1020 print"[192][192][192][192][192][192][192][219][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]"
- 1030 print"43-44[221][208]ointer: [211]tart of [194][193][211][201][195] text"
- 1040 print"45-46[221][208]ointer: [211]tart [194][193][211][201][195] variables"
- 1050 print"55-56[221][200]ighest address used by [194][193][211][201][195]"
- 1060 print"197[221][195]urrent key pressed (64=none)"
- 1070 print"198[221][206]o. chars in keyboard buffer"
- 1080 print"251-254[221][198]ree zero page locations"
- 1090 print"646[221][198]oreground (character) colour"
- 1095 print"647[221][194]ackground colour under cursor"
- 1100 print"648[221][208]ointer: [211]creen [205]emory"
- 1110 print"631-640[221][203]eyboard buffer (10 bytes)"
- 1120 print"650[221][203]ey repeat: 0=normal,"
- 1130 print"[221] 100=disable, 255=all keys"
- 1140 print"653[221][211]hift/[195]trl/[195]= [203]eys, 1=[211]hift,"
- 1145 print"[221] 2=[195]ommodore, 4=[195]trl key"
- 1150 print"788-789[221][201][210][209] [214]ector (normally 59953)"
- 1160 print"828- [221][195]assette buffer: can use for"
- 1170 print"1023[221] 3 sprites (at 832,896,960)"
- 1200 print"1024-[221][211]creen memory (1000 bytes)"
- 1210 print"55296-[221][195]olour memory (1000 bytes)"
- 1990 return
- 1998 :
- 1999 rem *****************help screen 2
- 2000 hd$="[195]haracter [195]odes ":bd=6:bg=1:fm=12:fg=0
- 2010 print"":tb=3:ch=0:forb=1146to1146+24step5:fora=btob+720step40
- 2020 pokea+4,93:pokea,ch:printtab(tb);ch:ch=ch+1:nexta:print"":tb=tb+5:nextb
- 2030 ad=1171:fora=95to113:pokead+5,93:pokead,a:ad=ad+40:printtab(28);a:nexta
- 2040 print"":ad=1177:fora=114to127:pokead,a:ad=ad+40:printtab(34);a:nexta
- 2050 print"[195]odes 128-255 are reversed images of "
- 2060 print"codes 0-127, so add 128"
- 2990 return
- 2998 :
- 2999 rem *****************help screen 3
- 3000 hd$=" [195]olour ":bd=6:bg=1:fm=12:fg=0
- 3010 print"0 [194]lack [195][212][210][204] 1 [221] 0123456789012345"
- 3020 print"1 [215]hite [195][212][210][204] 2 [221] 0 [216][186][216][186][186]*[216][186][186][216][186][186][186][186][186][186]"
- 3030 print"2 [210]ed [195][212][210][204] 3 [221] 1 [186][216][186][216][186][186][186][216]*[186]*[186][186][216][186][186]"
- 3040 print"3 [195]yan [195][212][210][204] 4 [221] 2 [216][186][216][216]*[216][216][186][186][216][186][216][216][216][216][186]"
- 3050 print"4 [208]urple [195][212][210][204] 5 [221] 3 [186][216][216][216][216]*[186][216][216][216][216]*[216][216]*[216]"
- 3060 print"5 [199]reen [195][212][210][204] 6 [221] 4 [186]*[216][216][216][216][216][216][216][216][216][216][216][216][216]*"
- 3070 print"6 [194]lue [195][212][210][204] 7 [221] 5 [186]*[216]*[216][216][216][216][216][216][216]*[216][186][216]*"
- 3080 print"7 [217]ellow [195][212][210][204] 8 [221] 6 *[186][216][186][216][216][216][216][216][216][216][216][216]*[186][186]"
- 3090 print"8 [207]range [195]= 1 [221] 7 [186][216][186][216][216][216]*[216]*[186]*[186][186][216][216][216]"
- 3100 print"9 [194]rown [195]= 2 [221] 8 *[186][186][216][216][216][216][186][216][186][216][216][216][216][216]*"
- 3110 print"10 [204]t [210]ed [195]= 3 [221] 9 [216][186][216][216][216][216][216][186][186][216][186][216][216][216][216][186]"
- 3120 print"11 [199]rey 1 [195]= 4 [221] 10 **[186][216][216][216][216]*[216][186][216][216][216][216][216]*"
- 3130 print"12 [199]rey 2 [195]= 5 [221] 11 [186][186][216]*[216][216][216][186][216][216][216][216][186][186]*[186]"
- 3140 print"13 [204]t [199]reen [195]= 6 [221] 12 [186][186]*[216][216][216]*[216][216]*[216][186][216][216][216][186]"
- 3150 print"14 [204]t [194]lue [195]= 7 [221] 13 [186][216][216][216][216][186]*[216][216][216][216][186][216][216][216][216]"
- 3160 print"15 [199]rey 3 [195]= 8 [221] 14 [186][186][216][186][216][216][186][216][216][216][216]*[216][216][216]*"
- 3170 print"[221] 15 [186][186][186][216]**[186][216][216]**[186][186][216]*[216]"
- 3175 print"[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][177][192][192][192][192][178][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]"
- 3180 print"[208][207][203][197] 646,foreground [221] [186] = [199][207][207][196] [205][201][216]"
- 3190 print"[208][207][203][197] 53280,border [160][221] * = [198][193][201][210] [205][201][216]"
- 3200 print"[208][207][203][197] 53281,background [221] [216] = [208][207][207][210] [205][201][216]"
- 3990 return
- 3998 :
- 3999 rem *****************help screen 4
- 4000 hd$=" [203]ey [208]ress ":bd=6:bg=1:fm=12:fg=0
- 4010 print"0 [196]el [221] 21 [198] [221] 42 [204] [221] 63 [206]one"
- 4020 print"1 [210]eturn[221] 22 [212] [221] 43 - [221] 64 [206]o key"
- 4030 print"2 [210]ight [221] 23 [216] [221] 44 . [221] pressed"
- 4040 print"3 [198]7 [221] 24 7 [221] 45 : [221][192][192][192][192][192][192][192][192][192][192][192]"
- 4050 print"4 [198]1 [221] 25 [217] [221] 46 @ [221]197 holds"
- 4060 print"5 [198]3 [221] 26 [199] [221] 47 , [221]a coded"
- 4070 print"6 [198]5 [221] 27 8 [221] 48 \ [221]value for"
- 4080 print"7 [196]own [221] 28 [194] [221] 49 * [221]the current"
- 4090 print"8 3 [221] 29 [200] [221] 50 ; [221]key pressed"
- 4100 print"9 [215] [221] 30 [213] [221] 51 [195]lear[221][210]efer to"
- 4110 print"10 [193] [221] 31 [214] [221] 52 [206]one [221]this table"
- 4120 print"11 4 [221] 32 9 [221] 53 = [221]for these"
- 4130 print"12 [218] [221] 33 [201] [221] 54 ^ [221]values."
- 4140 print"13 [211] [221] 34 [202] [221] 55 / [221][201]f more"
- 4150 print"14 [197] [221] 35 0 [221] 56 1 [221]than one"
- 4160 print"15 [206]one [221] 36 [205] [221] 57 _ [221]key is"
- 4170 print"16 5 [221] 37 [203] [221] 58 [206]one [221]pressed the"
- 4180 print"17 [210] [221] 38 [207] [221] 59 2 [221]higher is"
- 4190 print"18 [196] [221] 39 [206] [221] 60 [211]pace[221]stored."
- 4200 print"19 6 [221] 40 + [221] 61 [206]one [221]"
- 4210 print"20 [195] [221] 41 [208] [221] 62 [209] [221]"
- 4990 return
- 4998 :
- 4999 rem *****************help screen 5
- 5000 hd$=" [205]emory [205]ap ":bd=6:bg=1:fm=12:fg=0
- 5010 print"65535[176][192][192][192][192][192][192][192][192][192][192][192][192][174]$[198][198][198][198][221][195]haracter [210][207][205]"
- 5020 print"[221]8[203] [203]ernal[210][207][205][221] [221]at 53248 (4[203])"
- 5030 print"57344[171][192][192][192][192][192][192][192][192][192][192][192][192][179]$[197]000[221] [201]mage at"
- 5040 print"[221][201]nput/[207]utput[221] [221] 4096-8191"
- 5050 print"56320[171][192][192][192][192][192][192][192][192][192][192][192][192][179]$[196][195]00[171][192][192][192][192][192][192][192][192][192][192][192][192][192]"
- 5060 print"[221][195]olour [210][193][205] [221] [221][207]n power up,"
- 5070 print"55296[171][192][192][192][192][192][192][192][192][192][192][192][192][179]$[196]800[221][214][201][195] [201][201] sees"
- 5080 print"[221][214][201][195] [201][201] &[160][211][201][196][221] [221]1st 16[203] [194]ank"
- 5090 print"53248[171][192][192][192][192][192][192][192][192][192][192][192][192][179]$[196]000[221](0-16383)"
- 5100 print"[221]4[203] [198]ree [210][193][205] [221] [171][192][192][192][192][192][192][192][192][192][192][192][192][192]"
- 5110 print"49152[171][192][192][192][192][192][192][192][192][192][192][192][192][179]$[195]000[221]$0001 (1)"
- 5120 print"[221]8[203] [194]asic [210][207][205][221] [221]controls"
- 5130 print"40960[171][192][192][192][192][192][192][192][192][192][192][192][192][179]$[193]000[221]switching of"
- 5140 print"[221]38[203] [198]ree [221] [221][210][193][205]"
- 5150 print"16384[221] [213]ser [210][193][205] [221]$4000[221] - bit 0"
- 5160 print"2048[171][192][192][192][192][192][192][192][192][192][192][192][192][179]$0800[221] [194]asic [210][207][205]"
- 5170 print"[221][211]pr [208]ointers[221] [221] 0=[210][193][205]"
- 5180 print"[221][212]ext [211]creen [221] [221] 1=[210][207][205] in"
- 5190 print"1024[171][192][192][192][192][192][192][192][192][192][192][192][192][179]$0400[221] - bit 1"
- 5200 print"[221][211]ystem [205]em [221] [221] [203]ernal [210][207][205]"
- 5210 print"0[173][192][192][192][192][192][192][192][192][192][192][192][192][189]$0000[221] same"
- 5990 return
- 5998 :
- 5999 rem *****************help screen 6
- 6000 hd$=" [214]ideo (1) ":bd=6:bg=1:fm=12:fg=0
- 6010 print"53248 [211]prite 0 [216] position register"
- 6020 print"53249 [217] position register"
- 6030 print"... and so on to 53263 ([211]prite 7 [217])"
- 6040 print"53264 [205]ost [211]ignificant [194]it of [216] pos"
- 6050 print"for sprites 0-7, bit 0=sprite 0 [205][211][194]"
- 6060 print"... bit 7=sprite 7 [205][211][194]"
- 6070 print"53265 bit 0-2:vertical scrolling"
- 6080 print"bit 3:screen height, 0=24 rows"
- 6090 print"1=25 rows"
- 6100 print"bit 4:display on/off, 0=off"
- 6110 print"1=on"
- 6120 print"bit 5:bit map on/off"
- 6130 print"bit 6:extended colour on/off"
- 6140 print"bit 7:[205][211][194] of raster register"
- 6150 print"53266 [210]aster register. [210]ead to find"
- 6160 print"current line being drawn."
- 6170 print"[215]rite to generate interrupt."
- 6180 print"53267 [204]ight pen [216] position"
- 6190 print"53268 [204]ight pen [217] position"
- 6200 print"53269 [197]nable/disable sprites 0-7, each"
- 6210 print"bit equivalent to sprite number"
- 6990 return
- 6998 :
- 6999 rem *****************help screen 7
- 7000 hd$=" [214]ideo (2) ":bd=6:bg=1:fm=12:fg=0
- 7005 print"53270 bit 0-2:horizontal scrolling"
- 7006 print"bit 3:screen width"
- 7010 print"bit 4-5:[211]et/[210]eset [205]ulticolour"
- 7020 print"bit 6-7:unused"
- 7030 print"53271 [217] expansion of sprites 0-7"
- 7040 print"53272 [204]ocation of screen memory,colour"
- 7050 print"memory,character memory"
- 7060 print"bit 1-3:character set position"
- 7070 print"bit 4-7:screen position"
- 7080 print"(or colour memory, if bitmap on)"
- 7090 print"53273 [212]ype of interrupt which occurred"
- 7100 print"53274 [197]nable interrupt to occur"
- 7110 print"53275 [211]prite to background priority,"
- 7120 print"each bit equivalent to sprite no"
- 7130 print"53276 [211]prite hires/multicolour toggle"
- 7140 print"53277 [216] expansion - sprites 0-7"
- 7150 print"53278 [211]prite-to-sprite collisions"
- 7160 print"53279 [211]prite-to-background collisions"
- 7170 print"53280 [211]creen border colour"
- 7180 print"53281 [211]creen background colour"
- 7190 print"53287-53294 [211]prites 0-7 colour"
- 7990 return
- 7998 :
- 7999 rem *****************help screen 8
- 8000 hd$=" [211]ound ":bd=6:bg=1:fm=12:fg=0
- 8010 print"[214]oice 1:"
- 8020 print"54272 [198]requency low byte (0-255)"
- 8030 print"54273 [198]requency high byte (0-255)"
- 8040 print"54274 [208]ulse width low byte (0-255)"
- 8050 print"54275 [208]ulse width high byte (0-15)"
- 8060 print"54276 [215]aveform 16=triangle 64=pulse"
- 8070 print"32=sawtooth 128=noise"
- 8080 print"54277 [193]ttack/[196]ecay (use att*16+dec)"
- 8090 print"54278 [211]ustain/[210]elease (sus*16+rel)"
- 8100 print"[214]oice 2: 54279-54285 same as above"
- 8110 print"[214]oice 3: 54286-54292 same as above"
- 8120 print"[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]"
- 8130 print"54295:bits 0-2 - filter switches for"
- 8140 print"voices 1,2,3 0=off, 1=filter on"
- 8150 print"bits 4-7 - resonance setting"
- 8160 print"54296:bits 0-3 - volume (0-15)"
- 8170 print"4 - lowpass filter"
- 8180 print"5 - bandpass"
- 8190 print"6 - highpass 54297-8"
- 8200 print"54299:oscillator 3 output paddles"
- 8210 print"54300:envelope 3 output (port 1)"
- 8990 return
- 8998 :
- 8999 rem *****************help screen 9
- 9000 hd$=" [196]os/[208]rinter ":bd=6:bg=1:fm=12:fg=0
- 9010 print"[207][208][197][206]15,8,15 , then:"
- 9020 print"[198]ormat : [208][210][201][206][212]#15,"chr$(34)"[206]0:diskname,id"chr$(34)
- 9030 print"[210]ename : [208][210][201][206][212]#15,"chr$(34)"[210]0:new=old"chr$(34)
- 9040 print"[211]cratch : [208][210][201][206][212]#15,"chr$(34)"[211]0:filename"chr$(34)
- 9050 print"[214]alidate : [208][210][201][206][212]#15,"chr$(34)"[214]0"chr$(34)
- 9060 print"[201]nitialise: [208][210][201][206][212]#15,"chr$(34)"[201]0"chr$(34)
- 9070 print"and [195][204][207][211][197] 15"
- 9080 print"[212]o read error channel:"
- 9090 print"[207][208][197][206]15,8,15:[201][206][208][213][212]#15,[197][210],[197][210]$,[212][203],[211][210]"
- 9100 print"[208][210][201][206][212][197][210],[197][210]$,[212][203],[211][210]:[195][204][207][211][197]15"
- 9110 print"[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]"
- 9120 print"[197]nhance [207]n/[207]ff [195][200][210]$(14)/[195][200][210]$(15)"
- 9130 print"[210]everse [207]n/[207]ff [195][200][210]$(18)/[195][200][210]$(146)"
- 9140 print"[212]ab (n is tab position) [195][200][210]$(16);"chr$(34)"n"chr$(34)
- 9150 print"[195]arriage [210]eturn [195][200][210]$(13)"
- 9160 print"[204]ine [198]eed [195][200][210]$(10)"
- 9170 print"[213]ppercase/[199]raphics [207]n [195][200][210]$(34)"
- 9180 print"[213]pper/[204]owercase [207]n [195][200][210]$(17)"
- 9190 print"[209]uote ("chr$(34)") [195][200][210]$(34)"
- 9200 print"[194]itmap [208]rinting [207]n [195][200][210]$(8)"
- 9210 print"[210]epeated [194]it [201]mage [195][200][210]$(26);[195][200][210]$(n)"
- 9990 return
- 9998 :
- 9999 rem ****************help screen 10
- 10000 hd$=" [205]iscellaneous ":bd=6:bg=1:fm=12:fg=0
- 10010 print"[202][207][217][211][212][201][195][203][211]:"
- 10020 print"[208]ort 1 - [208][197][197][203](56321), 2 - [208][197][197][203](56320)"
- 10030 print"[176][192][192][192][178][192][192][192][178][192][192][192][178][192][192][192][192][178][192][192][192][192][192][178][192][192][192][192][178][192][192][192][192][178][192][192][174]"
- 10040 print"[221] - [221] - [221] - [221][198]ire[221][210]ight[221][204]eft[221][196]own[221][213]p[221]"
- 10050 print"[173][192][192][192][177][192][192][192][177][192][192][192][177][192][192][192][192][177][192][192][192][192][192][177][192][192][192][192][177][192][192][192][192][177][192][192][189]"
- 10060 print" [194][201][212] 7 6 5 4 3 2 1 0"
- 10070 print"[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]"
- 10080 print"[208][207][203][197]808,251 [196]isable [210]un[211]top/[210]estore"
- 10090 print"[208][207][203][197]774,131:[208][207][203][197]775,164 [196]isable [204][201][211][212]"
- 10100 print"[208][207][203][197]818,133:[208][207][203][197]819,164 [196]isable [211][193][214][197]"
- 10110 print"[208][207][203][197]774,226:[208][207][203][197]775,252 [210]eset on [204][201][211][212]"
- 10115 print"[208][207][203][197]818,226:[208][207][203][197]819,252 [210]eset on [211][193][214][197]"
- 10120 print"[208][207][203][197]19,2 [210]emove ? from [201][206][208][213][212] prompt"
- 10130 print"[208][207][203][197]19,0 [210]estore [201][206][208][213][212] prompt"
- 10150 print"[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]"
- 10160 print"[212]o stop disk drive head bang, use:"
- 10170 print"[207][208][197][206]15,8,15,"chr$(34)"[205]-[215]"chr$(34)"+[195][200][210]$(106)+[195][200][210]$(0)+"
- 10180 print"+[195][200][210]$(1)+[195][200][210]$(133):[195][204][207][211][197]15"
- 10190 print"[192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192][192]"
- 10200 print"[211][217][211]65126 [215]arm [211]tart ([210]un[211]top/[210]estore)"
- 10210 print"[211][217][211]64738 [195]old [211]tart ([210]eset)"
- 10990 return
-